

def square_equation(x):
    return (x - 2) ** 2 + 2


def tri_equation(x):
    return x ** 3 - 2 * x + 1


def derivative_tri_equation(x):
    return 3 * (x ** 2) - 2
